#ifndef __MAIN__
#define __MAIN__



void InitKey(void);
BYTE IntKey(void);
BYTE ReadKey(void);

void InitIR(void);
void IntIR(void);
BYTE IsRemoDataReady(BYTE *DataCode, BYTE *AutoKey);

//=============================================================================
//                                 RC5 Techwell type
//=============================================================================

#define REMO_TWLL_NUM0		0
#define REMO_TWLL_NUM1		1
#define REMO_TWLL_NUM2		2
#define REMO_TWLL_NUM3		3
#define REMO_TWLL_NUM4		4
#define REMO_TWLL_NUM5		5
#define REMO_TWLL_NUM6		6
#define REMO_TWLL_NUM7		7
#define REMO_TWLL_NUM8		8
#define REMO_TWLL_NUM9		9

#define REMO_TWLL_STANDBY	12
#define REMO_TWLL_CHNUP		32
#define REMO_TWLL_CHNDN		33
#define REMO_TWLL_VOLUP		16
#define REMO_TWLL_VOLDN		17
#define REMO_TWLL_SELECT		21
#define REMO_TWLL_MENU		63
//#define REMO_TV			63
//#define REMO_VCR		60
//#define REMO_SVIDEO		56
#define REMO_TWLL_MUTE		13
#define REMO_TWLL_INPUT		56

#define REMO_TWLL_AUTO		10
#define REMO_TWLL_INFO		58
#define REMO_TWLL_AUDIO		38
#define REMO_TWLL_ASPECT		62
#define REMO_TWLL_CC			15
#define REMO_TWLL_EXIT		0x16

#define REMO_TWLL_TTXRED			0x37
#define REMO_TWLL_TTXGREEN		0x36
#define REMO_TWLL_TTXYELLOW		0x32
#define REMO_TWLL_TTXCYAN		0x34

#define REMO_TWLL_PIPON			37
#define REMO_TWLL_SWAP			51
#define REMO_TWLL_PIPINPUT		40
#define REMO_TWLL_STILL			36
#define REMO_TWLL_PIPCHUP		39
#define REMO_TWLL_PIPCHDN		19



//=============================================================================
//                                 NEC type
//=============================================================================


//=============================================================================
//                                 Key In Value
//=============================================================================
#define	KEY_NONE			0
#define KEY_RIGHT			1
#define KEY_UP				2
#define KEY_MENU			3
#define KEY_DOWN			4
#define KEY_LEFT			5
#define	KEY_INPUT			6
#define	KEY_PWR				7

#endif

